<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta charset="UTF-8">
		<title>共富网-红包</title>
		<link href="/game/redpack/css/redPacket.css" type="text/css"
		rel="stylesheet" />
		<script type="text/javascript" src="/v3/js/jquery-1.10.2.min.js"></script>
		<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
		<script type="text/javascript">
			var senvKey = '${param.state}';
		</script>
	</head>
	<body>
	<div class="wztkjPopUpBox" style="display:none;">
		<div class="wztkjPopUpBoxMain">
			<div class="wztkjPopUpBoxContent1">
				<img src="/game/images/popUpBoxMark_03_06.png" />
			</div>
			<div class="wztkjPopUpboxBg">
				<div class="wztkjPopUpBoxContent2"></div>
				<div class="wztkjPopUpBoxContent3">
					<p class="wztkjPopUpboxP">取消</p>
					<p class="wztkjPopUpboxP1">确定</p>
					<div style="display:none;"></div>
				</div>
				<div class="wztkjPopUpBoxContent4" style="display:none;">确定</div>
			</div>
		</div>
		</div>
		
		
		<div class="redPacketMain">
			<div class="redPacketTitle">
				<div class="redPacketPortrait">
					<div class="redPacketPMain rechargeHPMain">
						<div class="redPacketBorder">
						<c:choose>
							<c:when test="${not empty wechatUserInfoMap}">
								<img src="${wechatUserInfoMap.headimgurl }"/>
							</c:when>
							<c:otherwise>
								<img src="/game/redpack/images/0.png"/>
							</c:otherwise>
						</c:choose>
						</div>
					</div>
					<p class="redPacketPDescribe"><span class="redPacketPName">${wechatUserInfoMap.nickname }</span>发来一个红包</p>
				</div>
				<div class="redPacketButton">
					<div class="redPacketBBase">
						<div class="redPacketBOuter">
							<a href="javascript:;" onclick="changehref()">抢红包</a>
						</div>
					</div>
				</div>
				<div class="rdPacketRule">
					<h3>红包规则</h3>
						<p>1.红包可用于转发好友或体验投资。</p>
						<p>2.共富网保留产品及活动的最终解释权。</p>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="/game/redpack/js/jquery.hbalerts.js"></script>
		<script type="text/javascript" src="/v3/js/wechat-util.js"></script>
		<script type="text/javascript" src="/game/redpack/js/share.redpack.js"></script>
<script type="text/javascript">
		function changehref() {
			$('.action').html('<a href="javascript:;"  class="item item-red IMG_button" node-type="lottery" style=""></a>');
			location.href = '/gainllredpack.do?senvKey=${param.state}';
		}
</script>
</body>
</html>